//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
//   PACKAGE   : dcf
//   FILE      : SubscriberRequest.java
//   CLASS     : SubscriberRequest
//   DATE      : 2006-04-01
//   
//   DESCRIPTION
//   The SubscriberRequest class represents a message sent to the Location Service by a subscriber of a service 
//   to be added as a subscriber.
//   
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
//   Copyright (c) 2006 by Hal Smith
//
//   Permission is hereby granted, free of charge, to any person obtaining a copy of this source code 
//   (the "Code")to deal with the Code without restriction, including without limitation the rights to use, copy,
//   modify, merge, publish and distribute the Code, and to permit persons to whom the Code is furnished to do 
//   so, subject to the following conditions:
//
//   The above copyright notice and this permission notice shall be included in all copies or substantial 
//   portions of the Software.
//   
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
//   VERSION HISTORY
//
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

package dcf;

class SubscribeRequest extends Message {
	
	// The name of the service to be subcribed.
	//
	private String serviceName;
	

	// Contructor.
	//
	// This operation initializes the subscriber request message. There are no exceptions thrown by this
	// operation.
	//
	public SubscribeRequest(String initServiceName) throws InitializationException {

		if (initServiceName != null) {
			
			serviceName = initServiceName;
			
		} else {
			
			System.out.println("SubscribeRequest.SubscribeRequest(initServiceName):");
			System.out.println("   The provided service name is null.");			
			
			throw new InitializationException();
			
		}
	
	} // Constructor

	
	// This operation returns the name of the service to be subscribed to. There are no exceptions thrown
	// by this operation.
	//
	public String getServiceName()	{
	
		return serviceName;
	
	} // getServiceName()

}
